<%if (t.isProtocol == 1) {%>
${g.copyright!}
<%}%>
package ${g.codePackage}.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.ToString;

/**
 * ${g.name}
 *
 * @author ${g.author}
 * @Date ${g.date}
 */
@Data
@ToString
@TableName("${g.tableName}")
public class ${g.entityName} implements Serializable {

    private static final long serialVersionUID = 1L;


<%for(field in t.fields){%>
    /**
     * ${field.chinaName}
     * ${field.comment}
     */
    <%if (field.name == g.idName) {%>
    @TableId(value = "${field.fieldName}",type = IdType.AUTO)
    <%}else{%>
    @TableField(value="${field.fieldName}")
    <%}%>
    private ${field.type} ${field.name};
<%}%>

}
